home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-1097 / AMOSLIST / text0170.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  978 b   |  30 lines

  1.      
  2.      I will try to explain this the best I can so bear with me
  3.      
  4.      I am trying to copy a memory block of 256 bytes from one address to 
  5.      another using the following line of code which is causing my system to 
  6.      crash.
  7.      
  8.      Copy Start(SBNK)+Val(SVCE$(SMZ)),Start(SBNK)+Val(SVCE$(SMZ))+256 to 
  9.      Start(20)
  10.      
  11.      where SBNK is either 10 or 11 and SMZ ranges from 1 to 128
  12.      
  13.      At one stage when I ran the program where SBNK is 10 and SMZ is 1 I 
  14.      got the following values
  15.      
  16.      Copy 1225400,1225656 to Start(20)
  17.      
  18.      The same line of code in direct mode does not crash and works fine but 
  19.      when run through my program it crashes.
  20.      
  21.      I went stepped through everything to verify that I was getting valid 
  22.      values for both SBNK and SMZ and every time they were valid.
  23.      
  24.      Can anyone see any obvious errors with my code or approach.  Any help 
  25.      or advice would be appreciated.
  26.      
  27.      
  28.      Declan.
  29.  
  30.